<?php 

return array(
	"prepare" => '
namespace myns;
class testNS {
	public static function call() {
		$ns = 0;
		for($i=0; $i<10; $i++)
			$ns += $i%5;
		return "b".$ns;
	}
}

namespace myns2;
class testNS {
	public static function call() {
		$ns = 0;
		for($i=0; $i<10; $i++)
			$ns += $i%5;
		return "a".$ns;
	}
}',
	"php" => 5.3,
	"name" => "Пространства имён",
	"tests" => array(
		"simple" => array(
			"code" => '$r = testNS::call();',
			"i" => 100,
			"desc" => "Без namespace"
		),
		"ns" => array(
			"code" => '$r = \myns\testNS::call();',
			"i" => 100,
			"desc" => "С namespace"
		)
	)
);
?>
